package dao;

import view.QueryView;

/**
 * Created by gable on 2018/5/23.
 */
public interface SearchDao {

    /**
     * @Author: 杨青桦
     * @Description:  查询数据库中最新的日期
     * @Date: 2018/5/23 15:08
     * @return
     */
    QueryView queryLatestDate();

    /**
     * @Author: 杨青桦
     * @Description: 检查是否有去年年末的数据
     * @Date: 2018/5/23 16:29
     * @param lastYear
     * @return
     */
    int checkLastYearEnd(Integer lastYear);

    /**
     * @Author: 杨青桦
     * @Description:  检查数据是否有重复导入
     * @Date: 2018/5/23 16:30
     * @param queryView
     * @return
     */
    int checkRepeatImport(QueryView queryView);
}
